/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package todonet.serializers;

/**
 *
 * @author DNS
 */
public class SerializerFactory {

    public static IToDoSerializer createSerializer(String fileName)
    {
        if (fileName.endsWith(".todo.xml"))
            return new ToDoXmlSerializer();
        //if (fileName.endsWith(".tdl"))
        //    return new TdlSerializer();
        return new ToDoXmlSerializer();
    }
}


